package jschool.ui.Asistencia;

import javax.swing.JPanel;
import java.awt.Frame;
import java.awt.BorderLayout;
import javax.swing.JDialog;

public class DialogoAsistencia extends JDialog {

	private static final long serialVersionUID = 1L;
	private PanelAsistencia jContentPane = null;
	private static DialogoAsistencia instancia = null;

	/**
	 * @param owner
	 */
	public DialogoAsistencia(Frame owner, String titulo) {
		super(owner, titulo);
		setModal(true);
		initialize();
	}

	public static DialogoAsistencia getInstancia() {
		if (instancia == null) {
			instancia = new DialogoAsistencia(null, "Lista de Asistencia");
		}
		return instancia;
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		this.setContentPane(getJContentPane());
		int height = this.getJContentPane().getHeight() + 40;
		int width = this.getJContentPane().getWidth() + 10;
		System.out.println(height);
		System.out.println(width);
		this.setSize(width, height);
	}

	/**
	 * This method initializes jContentPane
	 * 
	 * @return javax.swing.JPanel
	 */
	private PanelAsistencia getJContentPane() {
		if (jContentPane == null) {
			jContentPane = new PanelAsistencia();

		}
		return jContentPane;
	}

}
